﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GH.Web.UionReport
{
    public partial class LeaderSummrise : BasePage.PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (!this.IsPostBack)
            {
                hddSumarry.Value = "0";
                this.Session["UnionSelect"] = this.Session["Union"].ToString();
                this.Session["SelectCurrentYear"] = DateTime.Now.Year.ToString();
                //报表汇总
                if (GetRight(301))
                {
                    hddRights.Value = "1";

                }
                else
                {
                    hddRights.Value = "0";
                }
                //报表操作
                if (GetRight(302))
                {
                    hddOpen.Value = "1";

                }
                else
                {
                    hddOpen.Value = "0";
                }
                

            }

            this.hddYear.Text = this.Session["SelectCurrentYear"].ToString();
            this.hddUnionID.Value = this.Session["UnionSelect"].ToString();
            this.hddUnionValue.Value = new BLL.Union().GetModel(Convert.ToInt32(this.Session["UnionSelect"])).单位名称;
        }
    }
}
